package net.zhengxinyun.performance.service.exam.examClass;

import net.zhengxinyun.performance.entity.ExamManageEntity;
import net.zhengxinyun.performance.filter.ExamManageFilter;
import net.zhengxinyun.performance.mapper.exam.examClass.ExamManageMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class ExamManagerServiceImpl implements  ExamManageService {

    @Autowired
    private ExamManageMapper mapper;


    @Override
    public List<ExamManageFilter> query(ExamManageFilter filter) {
        return mapper.query(filter);
    }

    @Override
    public int queryForCount(ExamManageFilter filter) {
        return mapper.queryForCount(filter);
    }

    @Override
    public ExamManageEntity selectByPrimaryKey(Long id) {
        return mapper.selectByPrimaryKey(id);
    }

    @Override
    public int deleteByPrimaryKey(Long id) {
        return mapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(ExamManageEntity entity) {
        return mapper.insert(entity);
    }

    @Override
    public int insertSelective(ExamManageEntity entity) {
        return mapper.insertSelective(entity);
    }

    @Override
    public int updateByPrimaryKeySelective(ExamManageEntity entity) {
        return mapper.updateByPrimaryKeySelective(entity);
    }

    @Override
    public int updateByPrimaryKey(ExamManageEntity entity) {
        return mapper.updateByPrimaryKey(entity);
    }
}
